package com.yunchao.library.socket.config

import java.net.Socket

// ================== 连接状态 ==================
sealed class ConnectionState {
    data object Disconnected : ConnectionState()
    data object Connecting : ConnectionState()
    data class Connected(val socket: Socket) : ConnectionState()
    data class Error(val exception: Throwable) : ConnectionState()
}
